<template>
  <div id="app" class="flex-col">
    <!-- 左侧边栏 -->
    <Sidebar />
    <!-- 右侧容器 -->
    <div class="content">
      <keep-alive>
        <router-view :key="$route.fullPath"></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script>
import Sidebar from "@/views/Sidebar";
export default {
  name: "app",
  components: {
    Sidebar
  }
}
</script>

<style>
html,
body {
  height: 100%;
}

body {
  margin: 0;
}

/* flex栅格 */
.flex-col {
  overflow: hidden;
  display: -ms-box;
  display: -ms-flexbox;
  display: flex;
  /* flex-direction: column; */
  /* -ms-flex-direction: column; */
}

.content {
  flex: 4;
  text-align: left;
  /* border-left: 1px solid; */
}

.flex-row {
  overflow: hidden;
  display: -ms-box;
  display: -ms-flexbox;
  flex: 1;
}

.flex-1 {
  /* -ms-flex: 1; */
  /* flex: 1; */
  min-width: 0;
  width: 300px;
  padding: 0 20px;
}

.align-stretch {
  -ms-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.align-center {
  -ms-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.justify-center {
  -ms-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#app {
  height: 100%;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.T {
  font-size: 34px;
  margin: 0 0 30px;
  height: 170px;
  line-height: 260px;
  overflow: hidden;
}

.toolbar {
  margin: 20px auto;
}

.toolbar .btn {
  padding: 0.5em 1em;
  outline: none;
  border-radius: 4px;
}

.foot {
  margin-top: 30px;
  background: #333;
  padding: 24px;
  overflow: hidden;
  color: #999;
  font-size: 14px;
  text-align: center;
}

.foot a {
  color: #fff;
  margin: 0 0.5em;
}
</style>
